/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SolvedProblems;

import java.util.Scanner;

/**
 *
 * @author Power User
 */
public class TexQuote {

    public static void main(String args[]) {
        String aligned = "``";
        String verticalQuote = "''";
        String doubleQuote = "\"";
        try {
            int countDoubleQuote = 0;
            //File f = new File("input.txt");
            Scanner scanner = new Scanner(System.in);
            //Scanner scanner = new Scanner(f);
            while (scanner.hasNextLine()) {
                String line = scanner.nextLine();
                String out = "";
                for (int index = 0; index < line.length(); index++) {
                    char ch = line.charAt(index);
                    if (ch == '\"') {
                        countDoubleQuote++;
                        if (countDoubleQuote % 2 == 1) {
                            out = out + aligned;
                        }else{
                            out = out + verticalQuote;
                        }
                    }else{
                        out = out + ch;
                    }
                }//end for
                System.out.println(out);
            }//end while
        } //end main
        catch (Exception ex) {
            //Logger.getLogger(TexQuote.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//end main
}//end class TexQuote

